package gaej.example.contact.client;

import gaej.example.contact.client.Persoon;


import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Componist implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long componistNr;
	@Persistent(defaultFetchGroup = "true")
	private Persoon persoon;
	@Persistent
	private String tijdvak;
	@Persistent
	private Long composities;
	
	public Componist() {
		super();
	}

	public Componist(String tijdvak, Long composities) {
		super();
		this.tijdvak = tijdvak;
		this.composities = composities;
	}

	public Long getComponistNr() {
		return componistNr;
	}

	public void setComponistNr(Long componistNr) {
		this.componistNr = componistNr;
	}

	
	public Persoon getPersoon() {
		return persoon;
	}

	public void setPersoon(Persoon persoon) {
		this.persoon = persoon;
	}
	
	public String getTijdvak() {
		return tijdvak;
	}

	public void setTijdvak(String tijdvak) {
		this.tijdvak = tijdvak;
	}

	public Long getComposities() {
		return composities;
	}

	public void setComposities(Long composities) {
		this.composities = composities;
	}

}

